QA Video Automation: Recording, Finalization & File-backed Attachments#6935
Closed
Jasonnnz wants to merge 74 commits into
Closed
QA Video Automation: Recording, Finalization & File-backed Attachments#6935Jasonnnz wants to merge 74 commits into
Jasonnnz wants to merge 74 commits into
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enables Velly to run QA/test workflows through computer-use sessions, record the screen, and return a playable + draggable video in chat. Adds QA intent detection, IPC contract extensions, daemon-side finalization handling with summary + attachment injection, macOS screen recording lifecycle, file-backed attachment storage with HTTP range-request streaming, chat video playback with drag-to-Finder support, and configurable retention cleanup.
Changes
detectQaIntent()pattern-matches QA/test commands and natural-language requests (narrowed to avoid false positives on common words like "check")reportToSessionId,qaModeonCuSessionCreateandTaskRouted;conversationIdonTaskSubmit;retentionDays,captureScope,includeAudioonTaskRouted; newCuSessionFinalizedmessage with recording metadataAppDelegate+Sessions.swiftreads qaMode from task_routed, createsScreenRecorder, passes QA params + retention + capture config toComputerUseSession; sendsconversationIdin task_submithandleCuSessionFinalizedcreates file-backed attachment (always, for cleanup), injects summary + attachment into source chat (when reportToSessionId present). UsesrecordingTrackedflag to catch all edge cases.storageKind,filePath,sha256,expiresAtcolumns;createFileBackedAttachment()for large files; backward-compatibleGET /v1/attachments/:id/contentwith RFC 7233 range request supportScreenRecorderusing ScreenCaptureKit; integrated intoSession.swift; configurable retention + capture scope + audio from daemon configcaptureScopeis"window", resolves topmost non-selfCGWindowID(excludes own PID + filters to layer 0); when"display", passesCGMainDisplayID(). Falls back gracefully.InlineVideoAttachmentViewfetches from/contentfor file-backed attachments;.onDragfor drag-to-FinderqaRecording.defaultRetentionDays; background cleanup task; orphan recordings tracked in DBTask.isCancelledguardrecordingTrackedflag ensures all untracked recordings get DB entries (missing conversation, empty summary, etc.)Milestone PRs
Fix PRs
Known limitations (deferred to M3/M4)
captureScopeandincludeAudioalways come from daemon config. Per-request overrides planned for M3.Project issue
Closes #6899
Test plan
Generated with Claude Code